package com.sqx.modules.repairRecord.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sqx.modules.orders.entity.Orders;
import com.sqx.modules.task.entity.HelpOrder;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author www.javacoder.top
 * @since 2022-12-12
 */
@Data
public class RepairRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 1万能任务 2接单任务
     */
    private Integer orderType;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户昵称
     */
    private String userName;

    /**
     * 实际到账金额
     */
    private BigDecimal money;

   /**
     * 补费金额
     */
    private BigDecimal payMoney;

    /**
     * 已退款金额
     */
    private BigDecimal refundMoney;

    /**
     * 1已支付 2已退回
     */
    private Integer status;

    /**
     * 接收的用户id
     */
    private Long rideId;

    /**
     * 接收的用户昵称
     */
    private String rideName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 退回时间
     */
    private Date returnTime;

    /**
     * 0余额 1微信 2支付宝
     */
    private Integer payWay;

    private String payOrdersNo;

    @TableField(exist = false)
    private HelpOrder helpOrder;
    @TableField(exist = false)
    private Orders orders;
}
